﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Entities;
using Data;
using System.Data;

namespace BLL
{
    public class AccountBLL
    {
        AccountData accE = new AccountData();
        //public DataTable GetBalance(CardsEntity card)
        //{
        //    return AccountData.getBalance(card);
        //}
        public decimal getAccount(AccountsEntity acE)
        {
            return accE.getAccount(acE);
        }
        public AccountsEntity GetAccount( AccountsEntity ace)
        {
            return accE.GetAccount(ace);
        }
        public void UpdateAccount(AccountsEntity ace)
        {
            accE.UpdateAccount(ace);
        }
        public DataTable GetAllAccount()
        {
            return accE.GetAllAccount();
        }
        public void Transfer(int accountID, int accountID1, decimal amount, string cardNo)
        {
            accE.Transfer(accountID,accountID1,amount,cardNo);
        }
    }
}
